<script setup>
import { useLowCodeStore } from '@/store/useLowCodeStore';

const store = useLowCodeStore();

const set = str => {
  const value = store.nowComponent;
  value.props.type = str;
  store.updateNowComponents(value);
};
</script>

<template>
  <el-button
    @click="
      () => {
        set('primary');
      }
    "
    >默认</el-button
  >
  <el-button
    @click="
      () => {
        set('success');
      }
    "
    >成功</el-button
  >
</template>

<style scoped></style>
